package com.zhangfei.bean;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * 自定义UserDetails的实现类 ，我们继承了User,也可以写一些自己需要的参数
 */
public class MyUserDetails extends User {


    public MyUserDetails(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }
}
